package ooday05.JavaCodeHomework.Q1;
/** Point类演示第一遍 */
public class PointDemo01 {
    private int x1;
    private int y1;

    public int getX() {
        return x1;
    }
    public void setX1(int x) {
        if(x1 >= 0) {
            this.x1 = x;
        }
    }

    public int getY() {
        return y1;
    }
    public void setY1(int y) {
        this.y1 = y;
    }
}
